<template>
  <div id="app">
    <PublicTable :data="columns" ref="table" :total="100" :request="request">
      <el-table-column label="操作">
        <template v-slot="{row}">
          <el-button size="mini" type="primary" @click="test(row.name)">测试</el-button>
        </template>
      </el-table-column>
    </PublicTable>
  </div>
</template>

<script>


export default {
  name: 'App',
  data() {
    return {
      columns: Object.freeze([
        {
          name: "123"
        }
      ])
    }
  },
  mounted() {
  },
  methods: {
    request() {
      console.log(this.$refs.table.page)
    },
    test(name) {
      console.log(name)
    }
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
